﻿using Glue.Converters;
using Xunit;

namespace GlueTests.Converters
{
    namespace BoolStringConverterTest
    {
        public class When_converting
        {
            private readonly BoolStringConverter converter;

            public When_converting()
            {
                converter = new BoolStringConverter();
            }

            [Fact]
            public void Should_convert_bool()
            {
                Assert.Equal("False", converter.MapTowardsRight(false));
            }

            [Fact]
            public void Should_convert_String()
            {
                Assert.Equal(true, converter.MapTowardsLeft("True"));
            }
        }
    }
}
